
package com.bei_en.teacher.admin.model.questions.vo;

import java.util.*;
import com.bei_en.teacher.admin.model.questions.bean.QuestionsArticlePraise;
import com.bei_en.teacher.admin.model.BaseVo;
import javax.validation.constraints.*;
import org.hibernate.validator.constraints.*;
import java.math.BigDecimal;

/**
 * 用于前端页面数据传递
 * 
 * @author Guocg
 * @date 2016-8-21 21:26:14
 */
public class QuestionsArticlePraiseVo extends BaseVo {

    private QuestionsArticlePraise questionsArticlePraise;

    public QuestionsArticlePraiseVo() {

    this.questionsArticlePraise = new QuestionsArticlePraise();
    }

    public QuestionsArticlePraiseVo(QuestionsArticlePraise questionsArticlePraise) {

    this.questionsArticlePraise = questionsArticlePraise;
    }
    
    public QuestionsArticlePraise getQuestionsArticlePraise() {

    return this.questionsArticlePraise;
    }
    
    public void setQuestionsArticlePraise(QuestionsArticlePraise questionsArticlePraise) {

    this.questionsArticlePraise=questionsArticlePraise;
    }

        public Integer getId() {
            return this.questionsArticlePraise.getId();
        }
        public void setId(Integer id) {
            this.questionsArticlePraise.setId(id);
        }
        
        public void setId(Integer value) {
    	this.questionsArticlePraise.setId(value);
        }
	
    public Integer getId() {
        return this.questionsArticlePraise.getId();
    }
        
        public void setUserId(Integer value) {
    	this.questionsArticlePraise.setUserId(value);
        }
	
    public Integer getUserId() {
        return this.questionsArticlePraise.getUserId();
    }
        
        public void setPraisePeople(Integer value) {
    	this.questionsArticlePraise.setPraisePeople(value);
        }
	
    public Integer getPraisePeople() {
        return this.questionsArticlePraise.getPraisePeople();
    }
        
        public void setQuestionsId(Integer value) {
    	this.questionsArticlePraise.setQuestionsId(value);
        }
	
    public Integer getQuestionsId() {
        return this.questionsArticlePraise.getQuestionsId();
    }
        
    public void setCreateTime(Date value) {
        this.questionsArticlePraise.setCreateTime(value!=null ? (int) (value.getTime()/1000) : 0);
    }

	 public Date getCreateTime() {
	     Integer time=this.questionsArticlePraise.getCreateTime();
	     if (time!=null&&time!=0)
		    return new Date(Long.valueOf(time)*1000);
		else
		    return null;
	    }
    


}